package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.lang.String;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.ImportRecord;
/**
* @author liaocheng
* @date 2024-11-01
* description:录入记录表:修改录入的时候要删掉单局和统计记录
*/
@Data
public class ImportRecordVo  extends BaseField {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "群id")
    private Long groupId;

    @ApiModelProperty(value = "文本内容")
    private String txtContent;

    @ApiModelProperty(value = "是否有效：0:无效，1:有效(导入统计)")
    private Integer validStatus;

    private List<Long> delIds;  //批量删除ids

    public static ImportRecordVo invertToVo(ImportRecord importRecord){
        ImportRecordVo vo = new ImportRecordVo();
        BaseField.invert(importRecord, vo);
        vo.setId(importRecord.getId());
        vo.setGroupId(importRecord.getGroupId());
        vo.setTxtContent(importRecord.getTxtContent());
        vo.setValidStatus(importRecord.getValidStatus());
        return vo;
    }
}
